define at3_ldapclient($ldapsuffix,$ldapuri) {
  include cls_at3_ldapclient
  exec { "authconfig --ldapbasedn=\"$ldapsuffix\" --ldapserver=$ldapuri --enableldap --enableldapauth --update":
    require => Package[ "openldap", "nss_ldap", "openldap-clients" ],
  }
}

class cls_at3_ldapclient {
  package { [ "openldap", "nss_ldap", "openldap-clients" ] :
    ensure => installed,
  }
  
}  
